<extend name="Base:base"/>
<block name="header"></block>
<block name="footer">
    <script>
        $(document).ready(function () {
            $("#getcode").on("click", function () {
                $.ajax({
                    url: "{$data['root']}/account/code/",
                    type: "POST",
                    data: {
                        number: $("#account").val()
                    },
                    success: function (data) {
                        alert(data);
                    }
                });
            });
            $("#submit").on("click", function () {
                $.ajax({
                    url: "{$data['root']}/account/ajaxFind/",
                    type: "POST",
                    dataType: "JSON",
                    data: {
                        account: $("#account").val(),
                        password: $("#password").val(),
                        code: $("#code").val()
                    },
                    success: function (data) {
                        alert(data.message);
                        if (data.code == "1") {
                            window.location.href = "{$data['root']}/account/login/";
                        }

                    }
                });
            });
        });
    </script>
</block>
<block name="main">
    <div class="ShareAnyContainer" style="font-size: 14px;">
        当前位置：<a href="{$data['root']}/" title="首页">首页</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a
            href="{$data['root']}/account/find/" title="找回密码">找回密码</a>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <div class="line"></div>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer" style="line-height: 30px; text-align: center;">
        <p>手机：&nbsp;&nbsp;&nbsp;<input type="text" id="account"></p>

        <p>新密码：<input type="password" id="password"></p>

        <p>验证码：<input type="text" id="code"></p>

        <p>
            <button id="getcode">获取验证码</button>
            &nbsp;
            <button id="submit">找回</button>
        </p>
    </div>
</block>